/**
 * 存放 ** 数据
 * **/
import api from "api";

  // initial state
const state = {
    menuArr_level_one: [],
    menuArr_level_two: [],
    menuArr_level_three: [],
    menuArr_level_four: [],
};
// actions
const actions = {
  async getMenuArrLevelOne({commit}) {
    const res = await api.user.reqUserAllInfo()
    if (res.code === 200) {
      const result = res.data

      localStorage.setItem('userInfo', JSON.stringify(result))
      commit('set_user_AllInfo', {result})
    }
  },
}

// mutations
const mutations = {

}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
